# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-applets
pkgver=3.46.0
pkgrel=2
pkgdesc="Small programs for the panel"
url="https://wiki.gnome.org/Projects/GnomeApplets"
# gnome-panel
arch="all !armhf !s390x !riscv64"
license="GPL-2.0-or-later"
depends="adwaita-icon-theme"
makedepends="
	adwaita-icon-theme-dev
	dbus-glib-dev
	glib-dev
	gnome-panel-dev
	gtk+3.0-dev
	gucharmap-dev
	intltool
	itstool
	libgtop-dev
	libgweather4-dev
	libnotify-dev
	libwnck3-dev
	libxml2-dev
	polkit-dev
	upower-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-applets/${pkgver%.*}/gnome-applets-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-mini-commander
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
826abf56f76925f0246b49194b09ec9ae43963c43e3f861269ab839c08823bb2b8b1b47cd20a93495bfef0d4220ef579190f0dd491c3cb2ed70fdd0483b1f007  gnome-applets-3.46.0.tar.xz
"
